/**********************************
 *** 	@jgay
 *** 	@30 avr. 2012
 **********************************/
package fr.montreuil.wargame.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;

/**********************************
 ***	Imports
 **********************************/
@Entity(name="resources")
public class Resources {
	/**********************************
	 ***	Variables
	 **********************************/
	@Id
	@GeneratedValue
	private Long id;
	
	@OneToOne
	private User user;
	
	private int resources1;
	private int resources2;
	private int resources3;
	private int resources4;
	
	/**********************************
	 ***	Constructeur
	 **********************************/
	public Resources(){}
	
	public Resources(int resources1, int resources2, int resources3, int resources4) {
		this.resources1 = resources1;
		this.resources2 = resources2;
		this.resources3 = resources3;
		this.resources4 = resources4;
	}

	/**********************************
	 ***	Méthodes
	 **********************************/

	/**********************************
	 ***	Getters / Setters
	 **********************************/
	public int getResources1() {
		return resources1;
	}
	public void setResources1(int resources1) {
		this.resources1 = resources1;
	}
	public int getResources2() {
		return resources2;
	}
	public void setResources2(int resources2) {
		this.resources2 = resources2;
	}
	public int getResources3() {
		return resources3;
	}
	public void setResources3(int resources3) {
		this.resources3 = resources3;
	}
	public int getResources4() {
		return resources4;
	}
	public void setResources4(int resources4) {
		this.resources4 = resources4;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}
